def format_list_response(data: list) -> list:
    """Format a task dictionary for JSON response."""
    return [{**item, '_id': str(item['_id'])} for item in data]